Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHSTOR-6347: Enable recipe-based DR enrollment for discovered applications #1589

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

GowthamShanmugam
Copy link
Contributor

No description provided.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 19, 2024

@GowthamShanmugam: This pull request references RHSTOR-6347 which is a valid jira issue.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Oct 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: GowthamShanmugam

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


const prevLoader = React.useRef<PromiseComponent>(null);

const setComponent = React.useCallback(
(value) => {
Component.current = value;
setLoaded(true);
if (mounted.current) {
setLoaded(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix unit test case waring, React state update on an unmounted component

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: there are other state variables too, why jest is complaining only about this one in particular ??
Also, why doesn't it do so for other components that we have in this repo, why only this ??

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure there isn't some other reason for this warning ??

@@ -295,23 +294,23 @@ export const PVCDetailsWizardContent: React.FC<PVCDetailsWizardContentProps> =
return (
<Form>
<FormGroup>
<Text>
<span>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix unit test case waring, div cannot appear as a descendant of p

@GowthamShanmugam
Copy link
Contributor Author

Screenshot 2024-10-07 at 4 20 28 PM

Signed-off-by: Gowtham Shanmugasundaram <[email protected]>
@@ -152,7 +156,7 @@ export const SelectableTable: SelectableTableProps = <
onSelect: onSelect,
isSelected: isRowSelected(getUID(row), selectedRows),
isDisabled:
!isRowSelectable?.(row) ||
(!!isRowSelectable && !isRowSelectable?.(row)) ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed... !isRowSelectable?.(row) syntax will only execute when function exists, else not...

Suggested change
(!!isRowSelectable && !isRowSelectable?.(row)) ||
(!isRowSelectable?.(row) ||

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

original line was correct...

@@ -47,13 +47,18 @@ const useAsynchronousLoading: UseAsynchronousLoading = (
const Component = React.useRef<React.ComponentType>(null);
const [loadingStarted, setLoadingStarted] = React.useState(false);
const [loaded, setLoaded] = React.useState(false);
// Mount status for safty state updates
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Mount status for safty state updates
// Mount status for safely state updates

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove the comment as well... it's kind of self-explanatory from variable name itself...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants